home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / fractal / kaos.lha / include / main_kaos_def.h < prev    next >
Encoding:
C/C++ Source or Header  |  1989-11-18  |  1.8 KB  |  47 lines

  1. /*
  2. ***************************************************************************
  3.             Kaos main definitions
  4.  
  5.         Swan Kim and John Guckenheimer, POSTECH & Cornell U. 11/1/89
  6.  
  7. ***************************************************************************
  8. ****************************************************************************
  9. */
  10. /*----------------------------------------------------------------------------
  11.     System constants
  12. ---------------------------------------------------------------------------*/
  13. #define PI 3.1415926535897932     /* Pi you know */
  14. #define HUGE_LENGTH 400        /* Length of string */
  15. #define BIG_LENGTH 240        /* Length of string */
  16. #define MAX_LENGTH 80        /* Length of string */
  17. #define TRUE 1
  18. #define FALSE 0
  19.  
  20. /*----------------------------------------------------------------------------
  21.     Exclusive pixrect operation
  22. ---------------------------------------------------------------------------*/
  23. #define PIX_XOR (PIX_SRC ^ PIX_DST)
  24.  
  25. /*----------------------------------------------------------------------------
  26.     Colormap definition
  27. ---------------------------------------------------------------------------*/
  28. #define MY_COLORMAP_SIZE 128    /* colormap size */
  29. #define VAR_COLORMAP_SIZE 50     /* variable colormap size */
  30. #define ABS_COLORMAP_SIZE 78    /* fixed colormap size (invariable) */
  31. #include "./x11r2_kaos_def.h"    /* definition of X11R2 colormap */
  32. #define ForegroundColor 0    /* Foreground color */
  33. #define BackgroundColor MY_COLORMAP_SIZE-1    /* Background color */
  34.  
  35. /*----------------------------------------------------------------------------
  36.     Symbol definition (should be transparent)
  37. ---------------------------------------------------------------------------*/
  38. #define DOT 0
  39. #define CROSS 1
  40. #define TRIANGLE 2
  41. #define SQUARE 3
  42. #define XCROSS 4
  43. #define INVTRI 5
  44. #define DIAMOND 6
  45. #define STAR 7
  46. #define CIRCLE 8
  47.